"; echo ""; ?> "; echo "Error!!!"; echo ""; echo ""; echo ""; echo "

"; echo "\"!\"/
"; echo "Error! Cannot Connect To Database...

"; echo "This error happens usually when backing up the database, please be patient..."; echo "

"; echo ""; echo ""; exit(); } if($action=="addlyrics") { /////////////////////////forum.wapfuns.com/////////remove it only if you are stupid///////////// addonline(getuid_sid($sid),"Adding new Lyrics","index.php?action=online"); echo ""; echo "New Topic"; echo ""; echo ""; echo ""; echo "

"; echo "

"; echo "Title:
"; echo "Artist:
"; echo "Lyrics:
"; echo ""; echo "
"; ///////////////////////forum.wapfuns.com/////////remove it only if you are stupid/////////////// echo "0 \"\"/Home"; echo "

"; echo ""; } if($action=="publyrics") { $title = $_POST["title"]; $tart = $_POST["tart"]; $tlyric = $_POST["tlyric"]; if(istrashed(getuid_sid($sid))) { //////////////////////forum.wapfuns.com//////////remove it only if you are stupid///////////////// echo ""; echo "$sitename"; echo ""; echo ""; echo ""; echo "

"; echo "\"X\"/
Unknown error cannot publish lyrics!
please try again later...

"; echo "0 \"\"/Home"; echo "

"; echo ""; echo ""; exit(); } addonline(getuid_sid($sid),"Pulished New Lyrics",""); echo ""; /////////////////////////forum.wapfuns.com//////////remove it only if you are stupid///////////// echo "$sitename"; echo ""; echo ""; echo ""; echo "

"; { if((trim($title)!="")||(trim($tart)!="")||(trim($tlyric)!="")) { if(!isblocked($title,$uid)&&!isblocked($tart,$uid)) { $res = mysql_query("INSERT INTO ibwf_lyrics SET artist='".$tart."', title='".$title."', lyrics='".$tlyric."'"); }else{ $bantime = $time + (30*24*60*60); echo "\"X\"/"; echo "Can't Post Lyrics

"; echo "You just tried publishing a lyrics with a link to one of the crapiest sites on earth
The members of these sites spam here a lot, so go to that site and stay there if you don't like it here
as a result of your stupid action:
1. you have lost your sheild
2. you have lost all your plusses
3. You are BANNED!"; $user = getnick_sid($sid); mysql_query("INSERT INTO ibwf_mlog SET action='autoban', details='wapfuns auto banned $user for spamming in lyrics', actdt='".$time."'"); mysql_query("INSERT INTO ibwf_penalties SET uid='".$uid."', penalty='1', exid='2', timeto='".$bantime."', pnreas='Banned: Automatic Ban for spamming for a crap site'"); mysql_query("UPDATE ibwf_users SET plusses='0', shield='0' WHERE id='".$uid."'"); echo ""; echo ""; exit(); } } if($res) { $usts = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); $upl = $usts[0]+100; mysql_query("UPDATE ibwf_users SET posts='".$ups."', plusses='".$upl."' WHERE id='".$uid."'"); $tnm = htmlspecialchars($title); echo "\"O\"/Lyrics $tnm Created Successfully"; $tid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_lyrics WHERE title='".$title."'")); echo "

"; echo "View Lyrics
"; }else{ echo "\"X\"/Error Creating New Thread"; } } echo "0 \"\"/Home"; echo "

"; echo ""; } else if($action=="lyrics") { echo "\n"; echo "SpiderWap\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo ""; echo ""; addonline(getuid_sid($sid),"Lyrics",""); echo "

"; $tid = $_GET['tid']; $tinfo = mysql_fetch_array(mysql_query("SELECT artist, title, lyrics FROM ibwf_lyrics WHERE id='".$tid."' LIMIT 1")); echo "Artist: ".htmlspecialchars($tinfo[0])."
"; echo "Title: ".htmlspecialchars($tinfo[1])."

"; $lyrics = $tinfo[2]; $lyrics = htmlspecialchars($lyrics); $lyrics = nl2br($lyrics); echo "".$lyrics.""; echo "

Back to lyrics
\"*\"/"; echo "Home"; echo "

"; echo ""; } else if($action=="refr") { echo "\n"; echo "SpiderWap\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo ""; echo ""; addonline(getuid_sid($sid),"Viewing Lyrics",""); echo "

"; if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_lyrics")); $num_items = $noi[0]; //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $titles = mysql_query("SELECT id, artist, title FROM ibwf_lyrics ORDER BY artist, title LIMIT $limit_start, $items_per_page"); while($title = mysql_fetch_array($titles)) { echo ''.htmlspecialchars($title[1]).' - '.htmlspecialchars($title[2]).'
'; } echo "

"; if($page>1) { $ppage = $page-1; echo "«PREV "; } if($page<$num_pages) { $npage = $page+1; echo "Next»"; } echo "
$page/$num_pages
"; if($num_pages>2) { $rets = "

"; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= ""; $rets .= "
"; echo $rets; } echo "Publish New Lyrics
"; echo "\"*\"/"; echo "Home"; echo "

"; echo ""; } ?>